package com.chuqiyun.authorization.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chuqiyun.authorization.entity.Commodity;

/**
 * 商品(Commodity)表服务接口
 *
 * @author mryunqi
 * @since 2023-04-19 17:06:56
 */
public interface CommodityService extends IService<Commodity> {

    /**
     * @Author: mryunqi
     * @Description: 获取单个产品信息
     * @DateTime: 2023/4/19 23:00
     * @Params: String name 产品名
     * @Return Product
     */
    Commodity getCommodity(String name);

    Page<Commodity> getCommodityList(Integer page, Integer size);

    Page<Commodity> getCommodityList(Integer page, Integer size, QueryWrapper<Commodity> queryWrapper);
}

